export default {
    token: state => state.app.token,
    isLogin: state => !!state.app.token,
    userInfo: state => state.app.userInfo || {},
    uid: state => state.app.userInfo?.id || ''  // 从userInfo中获取uid更合理
};